<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>小说上传</title>
<link rel="stylesheet" href="/bookstore/static/css/bootstrap.min.css">
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1" style="padding-top:100px;">
				<form action="addFile.do" enctype="multipart/form-data" method="post">
					<div class="form-group input-group">
						<select name="index" class="form-control" required>
							<option>请选择上传类型</option>
							<c:forEach var="every" items="${requestScope.type}">
								<option value="${every.id}">
									<c:out value="${every.type}"></c:out>
								</option>
							</c:forEach>
						</select>
					</div>
					<div class="form-group input-group">
						<input type="file" name="file" class="form-control" required>
					</div>
					<div><input type="submit" value="立即添加" class="btn btn-primary"></div>
				</form>
			</div>
		</div>
	</div>
	
	<script type="text/javascript" src="/bookstore/static/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="/bookstore/static/js/bootstrap.min.js"></script>
</body>
</html>